<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<style>
	div[name='searchColums']{
		height: 70px!important;
	}
</style>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="list" checkbox="true" fitColumns="true"
  	 title="实验课程库" actionUrl="labLessonController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="院系"  field="college.id"  hidden="true"  queryMode="single" query="true" replace="${colleges }" ></t:dgCol>
   <t:dgCol title="课程编号"  field="lessonNo"  hidden="false" query="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="课程"  field="lessonZhName"  hidden="false" query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="面向专业"  field="major.majorName"  hidden="false"  queryMode="single" query="true" replace="${majors }"  width="120"></t:dgCol>
   <t:dgCol title="总学时"  field="sumHours"  hidden="false"  queryMode="group" query="true"  width="120"></t:dgCol>
   <t:dgCol title="学分"  field="score"  hidden="false"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="labLessonController.do?doDel&id={id}" />
   <t:dgToolBar title="创建课程" icon="icon-add" url="labLessonController.do?goAdd" funname="add" height="500" width="800"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="labLessonController.do?goAdd" funname="update" height="500" width="800"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="labLessonController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<%--    <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar> --%>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>
 <script>
//导入
 function ImportXls() {
 	openuploadwin('Excel导入', 'labLessonController.do?upload', "list");
 }

 //导出
 function ExportXls() {
 	JeecgExcelExport("labLessonController.do?exportXls","list");
 }
 
 function majorSelect(){
	 $.ajax({
		url: 'dictCollegeController.do?select',
		dataType: 'json',
		type: 'post',
		success: function(data){
			alert(data);
		}
	 });
 }
 </script>